import Vue from 'vue'
import Router from 'vue-router'
import HelloWorld from '@/components/HelloWorld'
import ZhangYi from '@/components/ZhangYi'
import user from '@/components/User'
import tool from '@/components/tool/Tool'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/helloworld',
      name: 'HelloWorld',
      component: HelloWorld
    },
    {
      path: '/zhangyi',
      name: 'ZhangYi',
      component: ZhangYi
    },
    {
      path: '/user',
      name: 'user',
      component: user
    },
    {
      path: '/tool',
      name: 'tool',
      component: tool
    },
    {
      path: '/tool/timestamp',
      name: 'tool2',
      component: tool
    }
  ]
})
